//
//  ChooseGradeCell.m
//  ChatDemo-UI2.0
//
//  Created by syun on 16/7/15.
//  Copyright © 2016年 syun. All rights reserved.
//

#import "ChooseGradeCell.h"

@implementation ChooseGradeCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        UIView *superView = self.contentView;
        
        _selectimg=[[UIImageView alloc]initWithFrame:CGRectMake(12, 12, 18, 18)];
        [superView addSubview:_selectimg];

        _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(_selectimg.frame.origin.x+_selectimg.frame.size.width +15, 14, 200, 15)];
        _nameLabel.font = [UIFont systemFontOfSize:15];
        _nameLabel.textColor=RGBACOLOR(59, 59, 59, 1);
        [superView addSubview:_nameLabel];

        
        _line=[[UIView alloc]initWithFrame:CGRectMake(_nameLabel.frame.origin.x, 41.5, SCREENWIDTH-_nameLabel.frame.origin.x, 0.5)];
        _line.backgroundColor=RGBACOLOR(199, 199, 204, 1);
        [superView addSubview:_line];
        
        
    }
    
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
